Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Security Namespace / SecurityUtils Class / GetCertificateChain Method / GetCertificateChain(Byte[],String,X509RevocationMode,X509VerificationFlags) Method
The byte array containing data in PFX or P12 format.
The password to use.
The revocation mode used to build the X509Chain.
The verification flags used to build the X509Chain.

In This Topic
    GetCertificateChain(Byte[],String,X509RevocationMode,X509VerificationFlags) Method
    In This Topic
    Builds the chain of certificates from a byte array.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetCertificateChain( _
       ByVal rawData() As System.Byte, _
       ByVal password As System.String, _
       Optional ByVal revocationMode As System.Security.Cryptography.X509Certificates.X509RevocationMode, _
       Optional ByVal verificationFlags As System.Security.Cryptography.X509Certificates.X509VerificationFlags _
    ) As System.Security.Cryptography.X509Certificates.X509Certificate2()
    public static System.Security.Cryptography.X509Certificates.X509Certificate2[] GetCertificateChain( 
       System.byte[] rawData,
       System.string password,
       System.Security.Cryptography.X509Certificates.X509RevocationMode revocationMode,
       System.Security.Cryptography.X509Certificates.X509VerificationFlags verificationFlags
    )

    Parameters

    rawData
    The byte array containing data in PFX or P12 format.
    password
    The password to use.
    revocationMode
    The revocation mode used to build the X509Chain.
    verificationFlags
    The verification flags used to build the X509Chain.

    Return Value

    The chain of certificates. The first element is the signing certificate, the last element is the certificate of CA.
    See Also